home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1996 February / PC Direct CD-ROM (February 1996).iso / software / claris / impact / disk12 / impact.rs_ / impact.rs / TEXT_169.txt < prev    next >
Encoding:
Text File  |  1995-08-28  |  1.0 KB  |  15 lines

  1. LOOKUP 
  2. Searches for the given value (row by row) in the first range, compare_range, and returns the value of the corresponding cell in the second range, result-range. If no cells satisfy the search criteria, an error is returned.
  3.  
  4. Format: LOOKUP (lookup-value, compare-range, result-range {,method})
  5.  
  6. Arguments:
  7. ΓÇó  lookup-value: A text or numeric expression.
  8. ΓÇó  compare-range: A cell range.
  9. ΓÇó  result-range: A cell range.
  10. ΓÇó  method: Optional. Use -1 to indicate a descending range that contains values in decreasing order from left to right and top to bottom. Use 1 to indicate an ascending range, where values are in increasing order from left to right and top to bottom. Use 0 for an exact match, where range order is not important.
  11. Note When specifying an ascending or descending range, be sure all the values are in order or you can get unexpected results.
  12.  
  13. Example:
  14. LOOKUP (5.5, B1..C5, D1..E5) returns 23.
  15. Shows that the greatest number less than or equal to 5.5 is 5, and its corresponding spot in result-range is cell D3, which contains 23.